var router = require('express').Router(),
  model = require('../models/model');

/* GET home page. */
router.get('/', function(req, res, next) {

  var user = new model.User({email: 'yiyern@yahoo.com', name: 'yiyern'});
  user.save();

  var data = {
    title: '模板',
    yas: '速度解决'
  }

  res.render('index', data);
});

module.exports = router;
